from app import BASE_URL


class TrustAccountApi:
    def __init__(self):
        # 实名认证
        self.approve_realname_url = BASE_URL + "/member/realname/approverealname"
        # 开户
        self.trust_register_url = BASE_URL + "/trust/trust/register"

    # 实名认证
    def approve_realname(self, session, realname, card_id):
        param = {
            "realname": realname,
            "card_id": card_id,
        }
        return session.post(self.approve_realname_url, data=param, files={"xx": "xxx"})

    # 开户
    def trust_register(self, session):
        return session.post(self.trust_register_url)
